package com.syedu.day08.homework;

import java.time.LocalDate;

/**
 * @Description 有固定底薪的销售人员
 * @createTime 2022/3/18 9:17
 * @author Administrator
 */
public class BasedPlusSalesEmployee extends SalesEmployee{
    private double baseSalary;//底薪

    public BasedPlusSalesEmployee() {

    }

    public BasedPlusSalesEmployee(String name, LocalDate birthday, double total, double rank, double baseSalary) {
        super(name, birthday, total, rank);
        this.baseSalary = baseSalary;
    }

    public double getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(double baseSalary) {
        this.baseSalary = baseSalary;
    }

    @Override
    public double getSalary(int month) {
        return super.getSalary(month) + baseSalary;
    }
}
